package com.syni.mdd.sjb.common.component.mybatis.community.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 数据宝管理员表
 * </p>
 *
 * @author lcc
 * @since 2021-02-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SjbQywxAdmin implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String corpid;

    /**
     * 企业微信的用户id
     */
    private String userid;

    /**
     * 全局唯一。对于同一个服务商，不同应用获取到企业内同一个成员的open_userid是相同的，最多64个字节。 登录用户在通讯录中返回
     */
    private String openUserid;

    /**
     * 后台管理员名称
     */
    private String name;

    /**
     * 管理员头像
     */
    private String avatar;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 数据宝用户id，填了手机号如果与数据宝用户匹配的话,会有此id
     */
    private Integer sjbUserId;

    /**
     * 部门名称
     **/
    private String department;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 删除时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    private String chooseIndustry;


    public static final String ID = "id";

    public static final String USERID = "userid";

    public static final String CORPID = "corpid";

    public static final String OPEN_USERID = "open_userid";

    public static final String NAME = "name";

    public static final String AVATAR = "avatar";

    public static final String PHONE = "phone";

    public static final String SJB_USER_ID = "sjb_user_id";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

}
